package com.ykt.validator;

import com.jfinal.core.Controller;

/**
 * @author long.hua
 * @version 1.0.0
 * @since 2016-03-01 22:31
 */
public class ShopValidator extends BaseValidator {

    @Override
    protected void validate(Controller c) {
        validateRequired("categoryId", "categoryIdMsg", "请传分类ID！");
    }

    @Override
    protected void handleError(Controller c) {
        c.renderJson(super.toJsonText(c));
    }


}
